package org.dbstar.scheduler.job;

import org.dbstar.scheduler.beans.Job;
import org.dbstar.scheduler.control.JobController;


/**
 * 创建Job执行器的工厂类
 * 
 * @author 代波
 * @since 1.0.0
 * @version 1.0.0
 * @date 2012-3-22
 */
public interface JobRunnerFactory {
	/**
	 * 根据Job来创建相应的Job执行器。
	 * 
	 * @param jobController Job控制器
	 * @param job Job
	 * @return 新创建的Job执行器
	 * @throws IllegalFactoryException 若无法正确构建时抛出
	 */
	public abstract JobRunner createJobRunner(JobController jobController, Job job) throws IllegalFactoryException;
}
